<include file="Layout/header" title="用户列表" />
<include file="Layout/sidebar" />
<div class="content-wrapper">
    <!-- Content Header (Page header) -->
    <section class="content-header">
        <h1>
            用户管理
            <small>用户列表</small>
        </h1>
        <ol class="breadcrumb">
            <li><a href="#"><i class="fa fa-dashboard"></i> 用户管理</a></li>
            <li class="active">用户列表</li>
        </ol>
    </section>

    <!-- Main content -->
    <section class="content">
        <!-- /.box -->
        <div class="box">
            <div class="box-header">
                <h3 class="box-title">用户参数</h3>
            </div>
            <!-- /.box-header -->
            <div class="box-body no-padding">
                <table class="table table-striped">
                    <tr>
                        <th>用户名称</th>
                        <th>用户邮箱</th>
                        <th>用户角色</th>
                        <th>添加时间</th>
                        <th>操作</th>
                    </tr>
                    <volist name='data' id='vol'>
                        <tr>
                            <td>{$vol.username}</td>
                            <td>{$vol.email}</td>
                            <td><if condition='$vol.role_id == 2'><span style="color:green;">普通管理员</span><else/><span style="color:red;">超级管理员</span></if></td>
                            <td>{$vol.addtime|date='Y-m-d H:i:s',###}</td>
                            <td>
                                <a href="__CONTROLLER__/edit/id/{$vol.id}" class="badge bg-green">编辑</a>
                                <a href="__CONTROLLER__/del/id/{$vol.id}" class="badge bg-red">删除</a>
                            </td>
                        </tr>
                    </volist>
                </table>
            </div>
            <!-- /.box-body -->
        </div>
        <!-- /.box -->
    </section>
    <!-- /.content -->
</div>
<!-- /.content-wrapper -->

<include file="Layout/footer" />